package flexo.scene;

public class Instance implements Comparable<Instance>
{
	protected Node node;
	protected Entity entity;
	
	Instance(Node node, Entity entity)
	{
		this.node = node;
		this.entity = entity;
	}
	
	public Node getNode()
	{
		return node;
	}
	
	public Entity getEntity()
	{
		return entity;
	}

	@Override
	public int compareTo(Instance o)
	{
		if (o.entity == this.entity && o.node == this.node)
		{
			return 0;
		}
		else
		{
			return 1;
		}
	}
}
